package com.redis.nxj.dao;

import com.redis.nxj.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author ningxinjie
 * @date 2021/3/29
 */
//@Mapper
public interface UserDao {
    public int addUser(User user);

    public int delUserById(Integer id);

    public int updateUserById(User user);

    public List<User> queryAllUser();

    public User queryUserById(Integer id);

}
